/**
 * @Author: 陈瑞鹏
 * @Date:   2023-01-28 09:51:51
 * @Last Modified by:   陈瑞鹏
 * @Last Modified time: 2023-01-29 09:23:24
 */
export class bagEntity {
  id: number = 0;
  name: string = ""; //名称
  desc: string = ""; //描述
  maxTime: number = 0; //最大使用次数
  time: number = 0; //剩余使用次数
  cost: number = 0; //修补遗物使用钻石（修补遗物增加一局使用次数）
  lock: boolean = false; //是否解锁
  public init(val) {
    this.id = val.id;
    this.name = val.name;
    this.desc = val.desc;
    this.maxTime = val.maxTime;
    this.cost = val.cost;
  }
}